﻿using System;
using System.Text;
using System.Web;

namespace System.Web
{
    public static class CoffeeScripts
    {
        public static IHtmlString Render(params string[] paths)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var p in paths)
            {
                
                string resolvedPath = System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl(p);
                
                sb.Append(String.Format("<script src=\"{0}\"></script>", resolvedPath));     
                sb.AppendLine();

            }
            return new HtmlString(sb.ToString());
        }

        //public static IHtmlString Url(string virtualPath);
    }
}
